﻿/****************
* Creat Date: 2020/08/04 03:55:26
* Creator: Quick.CodeGenerator
*****************/
using System;
using System.Data;
using System.Text;
using System.Collections.Generic;
using Dapper.Database;
using System.Threading.Tasks;
using BookStores.DTO.Response;

namespace BookStores.Contracts
{
    /// <summary>
    /// 数据表操作接口：BookAuthors
    /// </summary>
    public interface IBookAuthorsRepository : QuickFramework.SqlSugarOrm.IRepository<BookStores.Entity.BookAuthors>, Shared.Contracts.IDependency
    {
        /// <summary>
        /// 获取作者列表
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<(List<BookAuthor>, int)> GetBookAuthors(string name, int pageIndex = 1, int pageSize = 10);

        /// <summary>
        /// 获取作者列表
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<List<BookAuthor>> GetBookAuthorsByIds(IEnumerable<string> ids);
    }
}
